<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>spider</title>
    <style>
        #captcha-img{
            padding: 0;
            cursor: pointer;
            width: 200px;
            height: 60px;
        }
        #input_code{
            height: 30px;
        }
    </style>
    <script>
        function commit_code() {
            var code = input_code.value;
            var xhr = new XMLHttpRequest();
            xhr.open("POST","http://127.0.0.1:5000/vrfcode/vrifycode",true);
            var data = new FormData()
            data.append("code",code)
            xhr.send(data)
        }
    </script>
</head>
<body>
    <h1>检测到异常</h1>
    <span>
        <img  id="captcha-img" src="http://127.0.0.1:5000/vrfcode/getcode"/>
    </span><br>
    <form action="/vrfcode/vrifycode" method="post">
        <input name="code" type="text" placeholder="图形验证码"/>
        <p><input type="submit" value="Submit"></p>
    </form>
</body>
</html>